#ifndef __XMLOSTREAM
#define __XMLOSTREAM
#include "XmlData.h"
#include <cstdio>
#include <ctime>

namespace xml
{
	class XmlOStream
	{
	public:
		XmlOStream(void);
		~XmlOStream(void);
		XmlOStream(const char *);
		XmlOStream operator<<(XmlData &);
	private:
		std::FILE *outputFile;
		bool active;
		void writeXmlNode(XmlNode *node);
	};
}

#endif